package com.steamedfish.auctioncloudadserver.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.mail.SimpleMailMessage;

import java.util.Date;

@Configuration
public class MailConfig {

    //群发拍卖提醒配置和新品提醒配置
    @Bean
    public SimpleMailMessage simpleMailMessage(){
        SimpleMailMessage msg = new SimpleMailMessage();
        msg.setFrom("meetml@126.com");
        msg.setSubject("蒸鱼校园拍买平台拍品上新提醒");
//        msg.setTo();
        msg.setSentDate(new Date());
//        msg.setText();
        return msg;
    }

}